import com.four.bmm.dao.IReplyDao;
import com.four.bmm.entity.Reply;
import com.four.bmm.util.Pagnation;
import com.four.bmm.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class ReplyTestDemo {
    SqlSession session = null;
    IReplyDao replyDao = null;

    @Before
    public void init() {
        session = SqlSessionFactoryUtil.getSqlSession();
        replyDao = session.getMapper(IReplyDao.class);
    }
   /* @Test
    public  void testDemo1(){
       Pagnation<Reply> replyPagnation= replyDao.getNewsReplyListByPage(1,1);
       if (replyPagnation!=null){
           System.out.println(replyPagnation);
       }
    }*/

    @After
    public void destroy() {
        session.close();
    }
}
